package callback.wait.SyncCallback;

public class Client {
    Server server;

    public Client(Server server) {
        this.server = server;
    }

    public void request(final String msg) throws InterruptedException {
        System.out.println("客户端发送请求消息：" + msg);
        server.response(new MyCallback(),msg);
        System.out.println("客户端已经发消息给服务器端，请稍等。。。");
    }
}

